package com.offlinerssreader.controller;

import org.json.JSONException;
import org.json.JSONObject;

public class DataResponse extends ActionResponse {

	public DataResponse(String name, boolean status, String msg, Object data) {
		super(name, status, msg, data);
	}

	public String toJson() throws JSONException {
		JSONObject returnJson = new JSONObject();
		returnJson.put("actionName", actionName);
		returnJson.put("status", actionStatus);
		returnJson.put("msg", msg);
		returnJson.put("data", data);
		return returnJson.toString();
	};

}
